package ooday05;
//getter/setter的演示
public class GetterSetterDemo {
    public static void main(String[] args) {
        Point p = new Point();
        Point.b=100;//静态变量通过 类名. 访问
        p.setX(100);
        p.setY(200);
        System.out.println(p.getX()+","+p.getY());
        System.out.println(Point.b);
    }
}
